<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#div1{
				width:100px;
				height: 100px;
				background: red;
				transition: all 3s;
			}
			#div1:hover{
				background: green;
			}
		</style>
	</head>
	<body>
		<div id="div1"></div>
		<script src="../js/jquery-1.12.4.js"></script>
		<script src="../js/transition.js"></script>
		<script type="text/javascript">
			var div=document.getElementById('div1');
			div.addEventListener('transitionend',function(e){
				alert("浏览器支持过渡效果");
			})
		</script>
	</body>
</html>
